<?php

namespace App\Models;

class AgentRewardRuleSettings extends Base
{
    /**
     * 充值奖励
     */
    const TYPE_RECHARGE_BONUS = 1;

    /**
     * 每日下单奖励
     */
    const TYPE_DAILY_ORDER_REWARD = 2;

    /**
     * 每月下单奖励
     */
    const TYPE_MONTHLY_ORDER_REWARD = 3;

    public function operator()
    {
        return $this->belongsTo(Administrator::class, 'operator_id');
    }
}
